#!/usr/bin/env bash

docker build \
  --label "build.git.commit=$(git rev-parse HEAD 2>/dev/null || echo "$(date +%Y%m%d%H%M%S)-${RANDOM:1:3}")" \
  --label "build.timestamp=$(date +%Y-%m-%dT%H:%M:%S.${RANDOM:1:3}Z%:z)" \
  "$@"
